package com.mvity.framework.common.global;

import java.io.Serializable;

/**
 * 全局常量类 业务系统常量类应继承自本类
 * 
 * @version 1.0
 * @author vity
 * @date 2012-3-15
 * @mail vity.1215@gmail.com
 */
public class Constants implements Serializable {

	private static final long serialVersionUID = -9037055982275662186L;

	private Constants() {
	}

	/** TODO: 全局通用 */

	/**
	 * 默认字符集
	 */
	public static final String DEFAULT_CHARSET = "UTF-8";

	/**
	 * 默认数据项状态 正常
	 */
	public static final String DEFAULT_DATA_STATE = "empty";

	/**
	 * 当前用户标识
	 */
	public static final String USER_KEY = "user_key";

	/**
	 * 布尔值 是 正确
	 */
	public static final String YES = "true";

	/**
	 * 布尔值 否 错误
	 */
	public static final String NO = "false";

	/**
	 * 启用
	 */
	public static final String ENABLE = "enable";

	/**
	 * 禁用
	 */
	public static final String DISABLE = "disable";

	/** TODO: SYSTEM 定义项 */

	/**
	 * 集团状态：禁止使用
	 */
	public static final String SYSTEM_COMPANY_NOT_USE = "notuse";

	/**
	 * 集团状态：禁止登陆
	 */
	public static final String SYSTEM_COMPANY_NOT_LOGIN = "notlogin";

	/**
	 * 集团状态：正常
	 */
	public static final String SYSTEM_COMPANY_NORMAL = "normal";

	/**
	 * 正常附件
	 */
	public static final String SYSTEM_ATTACHMENT_NORMAL = "normal";

	/**
	 * 临时附件
	 */
	public static final String SYSTEM_ATTACHMENT_TEMP = "temp";

	/**
	 * 组件类型：菜单
	 */
	public static final String SYSTEM_COMPONENT_MENU = "menu";

	/**
	 * 组件类型：窗口
	 */
	public static final String SYSTEM_COMPONENT_PANEL = "panel";

	/**
	 * 组件类型：按钮
	 */
	public static final String SYSTEM_COMPONENT_BUTTON = "button";

	/**
	 * 组件类型：控件
	 */
	public static final String SYSTEM_COMPONENT_WIDGET = "widget";

	/**
	 * 组件类型：顶部工具
	 */
	public static final String SYSTEM_COMPONENT_TOPTOOL = "toptool";

	/**
	 * 组件类型：字段
	 */
	public static final String SYSTEM_COMPONENT_FILED = "filed";

	/**
	 * 用户帐户状态：已激活
	 */
	public static final String SYSTEM_USER_ACCOUNT_ACTIVED = "actived";

	/**
	 * 用户帐户状态：未激活
	 */
	public static final String SYSTEM_USER_ACCOUNT_INVALID = "invalid";

	/**
	 * 用户账户状态：已锁定
	 */
	public static final String SYSTEM_USER_ACCOUNT_LOCKED = "locked";

	/**
	 * 用户类型：超级管理员
	 */
	public static final String SYSTEM_USER_TYPE_SUPER_ADMIN = "super";

	/**
	 * 用户类型：管理员
	 */
	public static final String SYSTEM_USER_TYPE_ADMIN = "admin";

	/**
	 * 用户类型：普通用户
	 */
	public static final String SYSTEM_USER_TYPE_NORMAL = "normal";

	/**
	 * 用户类型：临时用户
	 */
	public static final String SYSTEM_USER_TYPE_TEMP = "temp";

}
